<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>Form Wizard - Ace Admin</title>

		<meta name="description" content="and Validation" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />

		<!--basic styles-->

		<link href="Public/Admin/css/bootstrap.min.css" rel="stylesheet" />
		<link href="Public/Admin/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="Public/Admin/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="Public/Admin/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!--page specific plugin styles-->

		<link rel="stylesheet" href="Public/Admin/css/select2.css" />

		<!--ace styles-->

		<link rel="stylesheet" href="Public/Admin/css/ace.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="Public/Admin/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="Public/Admin/css/ace-ie.min.css" />
		<![endif]-->

		<!--inline styles related to this page-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<style type="text/css">
		#page li {
		    list-style: none;
		    float: left;
		    height: 20px;
		    padding: 0 5px;
		    margin: 0 5px;
		    border: 1px solid #005580;
		}
	</style>
	
	<body>
		
		<div class="page-content">
			<div class="page-header position-relative">
				<h1>
					类型管理
					<small>
						<i class="icon-double-angle-right"></i>
						类型列表
					</small>
				</h1>
			</div><!--/.page-header-->
			<div class="row-fluid">
				<div class="span12">
					<!--PAGE CONTENT BEGINS-->

					<div class="row-fluid">
						<div class="span12">
							<table id="sample-table-1" class="table table-striped table-bordered table-hover">
								<thead>
									<tr>
										<th class="center" width="60">
											<i class="icon-link"></i>
											商品ID
										</th>
										<th >
											<i class="icon-leaf"></i>
											商品名称
										</th>
										<th class="" width="100" >
											<i class="icon-money"></i>
											价格
										</th>
										<th class="" width="80" >
											<i class="icon-truck"></i>
											库存
										</th>
										<th class="" width="80" >
											<i class="icon-eye-open"></i>
											点击次数
										</th>

										<th class="" width="80">
											<i class="icon-time"></i>
											添加时间
										</th>
										<th style="width: 150px;">
											<i class="icon-wrench"></i>
											分类操作
										</th>
									</tr>
								</thead>

								<tbody>
									{{foreach from="$goodsData" value="$v"}}
									<tr>
										<td class="center">
											{{$v['gid']}}
										</td>

										<td style="overflow: hidden;">
											<a target="_blank" href="{{U('Home/Show/index',array('gid'=>$v['gid']))}}">{{$v['gname']}}</a>
										</td>
										<td class="">
											<div id="mpirce" style="text-decoration: line-through;color: #999;">
												市场价：{{$v['mprice']}}
											</div>
											<div class="sprice">
												商城价：{{$v['sprice']}}
											</div>
										</td>
										<td class="">{{$v['inventory']}}</td>
										<td class="">{{$v['click']}}</td>
										<td class="">{{date('Y-m-d',$v['addtime'])}}</td>
										<td>
											<div class="btn-group">
												
												<a href="{{U('Glist/index',array('gid'=>$v['gid']))}}" class="btn btn-mini btn-success">
													<i class="icon-th-list bigger-120"></i>货品列表
												</a>
												
												<a href="{{U('Goods/edit',array('gid'=>$v['gid']))}}" class="btn btn-mini btn-info">
													<i class="icon-edit bigger-120"></i>修改
												</a>

												<a href="javascript: if(confirm('您确定删除吗？')) location.href='{{U('Goods/del',array('gid'=>$v['gid']))}}'" class="btn btn-mini btn-danger">
													<i class="icon-trash bigger-120"></i>删除
												</a>
											</div>

										</td>
									</tr>
									{{endforeach}}
								</tbody>
							</table>
							<ul id="page">
								{{$page}}
							</ul>
						</div>
					</div>
		</div><!--/.page-content-->

	</div><!--/.main-content-->
</div><!--/.main-container-->

	</body>
</html>
